function generateActivityData(){

    var starDate =radomDateArr(10);
    var endDate =radomDateArr(10);
    var title = radomTitleArr(10)
    var data=Mock.mock({
        "list|1-10": [
            {
                "id|1-100": 100,
                "name|1":title,
                "status|1":["等待报名","进行中","已取消","已结束"],
                "star_time|1":starDate,
                "end_time|1":endDate,
            }
        ]
    })
    var resp={};
    resp['data']=data.list;
    return resp;
}

function radomDateArr(len){
    var result=[];
    for(var i=0;i<=len;i++){
        result.push(Mock.mock('@date'))
    }
    return result;
}

function radomTitleArr(len){
    var result=[];
    for(var i=0;i<=len;i++){
        result.push(Mock.mock('@ctitle(20)'))
    }
    return result;
}